<?php
    $connect=mysql_connect("localhost","root","192510");
	mysql_select_db("news",$connect);
	//mysql_query("set names utf8");
	$id=$_POST['id'];
    $name=$_POST['name'];
    $type=$_POST['type'];
    $email=$_POST['email'];
    $licesneID=$_POST['licesneID'];
	$beizhu=$_POST['beizhu'];
	
    if($id==null){
		 $sql="insert into shouzhong(name,type,email,licesneID,beizhu) value('$name','$type','$email','$licesneID','$beizhu')";
		 mysql_query($sql);
	}else{
		
		 $sql="update shouzhong set name='$name',type='$type',email='$email',licesneID='$licesneID',beizhu='$beizhu' where id='$id'";
	     mysql_query($sql);
	}
	
	 echo "<script>location='select_shouzhong.php';</script>"
	 
?>